package test.executor;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * Created by crj on 2017/8/10.
 */
public class RejectedExecutionHandler implements java.util.concurrent.RejectedExecutionHandler {

    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
      System.out.print(r.toString() +" has bean rejected!");
    }
}
